
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class TradeSuccess extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
           appBar: AppBar(
            backgroundColor: Color(0xffffffff),
            title: Text('交易成功'),
            centerTitle: true
          ),
          body: ListView(
            padding: EdgeInsets.symmetric(horizontal: 15),
            children: [
              Container(
                margin: EdgeInsets.only(top: 15),
            padding: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
            decoration: BoxDecoration(
                color: Color(0XFFF8F9FD),
                borderRadius: BorderRadius.circular(15)),
            child: Column(
              children: [
                Row(
                  children: [
                    ClipRRect(
                      borderRadius: BorderRadius.circular(7.0), // 设置圆角大小
                      child: Image.asset(
                        'static/aaa.png',
                        width: 80,
                        height: 80,
                        fit: BoxFit.fill,
                      ),
                    ),
                    SizedBox(
                      width: 10,
                    ),
                    Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text('超现实元宇宙数字艺术展厅',
                            style: TextStyle(
                                fontSize: 15, color: Color(0XFF0F172B))),
                        Container(
                          margin: EdgeInsets.only(top: 35),
                          padding:
                              EdgeInsets.symmetric(horizontal: 5, vertical: 1),
                          decoration: BoxDecoration(
                              border: Border.all(color: Color(0XFF1F0584)),
                              borderRadius: BorderRadius.circular(6)),
                          child: Text('数字藏品',
                              style: TextStyle(
                                  fontSize: 12, color: Color(0XFF1F0584))),
                        )
                      ],
                    )
                  ],
                ),
              ],
            ),
          ),
Container(
            margin: EdgeInsets.only(top: 10),
            padding: EdgeInsets.symmetric(horizontal: 15,vertical: 15),
              decoration: BoxDecoration(
                  color: Color(0XFFF8F9FD),
                  borderRadius: BorderRadius.circular(8)),
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('订单编号',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  SizedBox(
                    height: 20,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,

                    children: [
                      Text('购买数量',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  SizedBox(
                    height: 20,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,

                    children: [
                      Text('订单金额',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                ],
              )),
            ],
          ),
    );
  }
}